const state = {
	orderList: [
		[{
			id: 1,
			store: '夏日流星限定贩卖',
			deal: '交易成功',
			goodsList: [{
					goodsUrl: '//img13.360buyimg.com/n7/jfs/t1/103005/7/17719/314825/5e8c19faEb7eed50d/5b81ae4b2f7f3bb7.jpg',
					title: '【冬日限定】现货 原创jk制服女2020冬装新款小清新宽松软糯毛衣外套女开衫短款百搭日系甜美风',
					type: '灰色;M',
					deliveryTime: '付款后30天内发货',
					price: '348.58',
					number: 2
				},
				{
					goodsUrl: '//img12.360buyimg.com/n7/jfs/t1/102191/19/9072/330688/5e0af7cfE17698872/c91c00d713bf729a.jpg',
					title: '【葡萄藤】现货 小清新学院风制服格裙百褶裙女短款百搭日系甜美风原创jk制服女2020新款',
					type: '45cm;S',
					deliveryTime: '付款后30天内发货',
					price: '135.00',
					number: 1
				}
			]
		}],
		[],
		[]
	],
};

const mutations = {
	getOrder: (state, data) => {
		state.orderList[0].push(data);
	},
}
const actions = {
	GETORDER({
		commit
	}, parmas) {
		return new Promise((resovle, reject) => {
			// TODO 请求获取订单数据
			console.log('请求获取订单数据',parmas);
			commit('getOrder', parmas);
			resovle(208);
		})
	},

}
export default {
	namespaced: true,
	mutations,
	actions,
	state
}
